import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import './assets/styles/index.scss'

Vue.config.productionTip = false
// 配置element-ui
Vue.use(ElementUI)
// 配置 axios 内容
Vue.prototype.$store = store

router.afterEach((to, from, next) => {
  window.scrollTo(0, 0)
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
